import {request} from "../request";

//1.登录接口
export function login(user) {
    return request({
        url: '/login',
        method: 'post',
        data: user
    })
}

//2.获取登录验证码
export function getCaptcha() {
    return request({
        url: '/captcha',
        responseType: 'arraybuffer'
    })
}

//3.获取登录员工的基础信息
export function getUserInfo(){
    return request({
        url: '/user-info',
        method: 'get'
    })
}

//4.退出登录
export function loginOut(){
    return request({
        url: '/logout',
        method: 'get'
    })
}
